package com.game.modular.game.battle.panel.attribute.domain;

import com.game.modular.game.battle.panel.skillEffect.PvpSkillEffect;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashSet;
import java.util.Set;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ValueStatus {
    private Long coreSkillEffectId;// 技能效果id
    private Long status;// 状态
    private Integer coreSkillType; // 技能效果类型
    private Integer baseKeep; // 持续回合
    private Integer start; // 开始回合(获取的回合)
    private Integer useType; // 1 次数 2 回合
    private Integer useNum;
    private Set<Integer> refreshRound = new HashSet<>();

    private PvpSkillEffect skillEffect;

    public boolean use() {
        useNum -= 1;
        return useNum >= 0;
    }

    public void refreshStatus(Integer round) {
        boolean add = refreshRound.add(round);
        if(add){

        }
    }
}
